import 'package:color_dart/RgbaColor.dart';
import "package:flutter/material.dart";
import 'package:im_flutter_sdk_example/utils/global.dart';

class AccountSecurity extends StatelessWidget {
  Widget _buildArrow() {
    return Icon(Icons.arrow_forward_ios,
        color: rgba(163, 163, 163, 1), size: 14);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('账号与安全')),
      body: Container(
        // padding: EdgeInsets.symmetric(horizontal: 15),
        child: Container(
          color: Colors.white,
          child: Column(
            children: [
              ListTile(
                onTap: () {
                  G.pushNamed('/login_reset_password');
                },
                title: Text("重置密码"),
                trailing: _buildArrow(),
              ),
              ListTile(
                onTap: () {
                  G.pushNamed('/login_forget_password');
                },
                title: Text("忘记密码"),
                trailing: _buildArrow(),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
